package cn.humaohua.study.yanmo_design_pattern.ch24.v1;

/**
 * Created by hmh on 09/01/2018.
 */
public class Main {
    public static void main(String[] args) {
        String message = "test msg";
        String toUser = "z3";
        Message message1 = new CommonMessageSMS();
        message1.send(message, toUser);

        message1 = new CommonMessageEmail();
        message1.send(message, toUser);

        UrgencyMessage urgencyMessage1 = new UrgencyMessageSMS();
        urgencyMessage1.send(message, toUser);

        urgencyMessage1 = new UrgencyMessageEmail();
        urgencyMessage1.send(message, toUser);


    }
}
